<?php


namespace app\api\controller\task;


use think\Controller;
use think\Request;

class TaskBase extends Controller
{

    public $param = null;
    private $allowKey = [
        'bsUxk2lZO7veuacsICNz0L'
    ];

    public function __construct(Request $request = null)
    {
        parent::__construct($request);
        $this->param = input();

        $this->check_auth();

    }

    private function check_auth()
    {
        if (empty($this->param['bskey'])) {
            data_return('Bskey missing');
        } elseif (!in_array($this->param['bskey'], $this->allowKey)) {
            data_return('This bskey are not allowed ');
        }

    }
}